package Practice;

import java.util.Scanner;

public class T5 {
    public static void main(String[] args) {
//        回文数
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        boolean flag = true;
        for (int i = 0, j = str.length() - 1; i < str.length() / 2; i++, j--) {
            char a = str.charAt(i);
            char b = str.charAt(j);
            if (str.charAt(i) != str.charAt(j)) {
                flag = false;
                break;
            }
        }
        System.out.println(flag);
    }
}
